extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]晃悠悠"
	att.maxHp = 200
	att.cd = 0.2
	info = "每秒对周围1格(十字)范围的敌人造成[目标血上限2%]的真实技能伤害\n召唤物装备时此特效伤害减半\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _upS():
	if masCha == null || not utils.inBattle(masCha) or masCha.isDeath:return
	var p2 = 1
	if masCha.isSumm:p2 = 0.5
	for i in masCha.getCellChas(masCha.cell, 1, 1):
		if i.type == sys.CharaClass.BOSS:
			masCha.azurHurtChara(i, i.att.maxHp*p2*0.005, sys.HurtType.REAL, sys.AtkType.SKILL, "晃悠悠")
		else:
			masCha.azurHurtChara(i, i.att.maxHp*p2*0.02, sys.HurtType.REAL, sys.AtkType.SKILL, "晃悠悠")

func upgrade():
	name = "[color=#FFFF00][史诗]晃悠悠"
	info = "每秒对周围1格(十字)范围的敌人造成[目标血上限2%]的真实技能伤害\n召唤物装备时此特效伤害减半"
	att.maxHp = 400
	att.cd = 0.4